package com.ruoyi.equipment.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.equipment.mapper.EquipmentCategoryMapper;
import com.ruoyi.equipment.domain.EquipmentCategory;
import com.ruoyi.equipment.service.IEquipmentCategoryService;

/**
 * 【请填写功能名称】Service业务层处理
 * 
 * @author ruoyi
 * @date 2022-12-14
 */
@Service
public class EquipmentCategoryServiceImpl implements IEquipmentCategoryService 
{
    @Autowired
    private EquipmentCategoryMapper equipmentCategoryMapper;

    /**
     * 查询【请填写功能名称】
     * 
     * @param id 【请填写功能名称】主键
     * @return 【请填写功能名称】
     */
    @Override
    public EquipmentCategory selectEquipmentCategoryById(Long id)
    {
        return equipmentCategoryMapper.selectEquipmentCategoryById(id);
    }

    /**
     * 查询【请填写功能名称】列表
     * 
     * @param equipmentCategory 【请填写功能名称】
     * @return 【请填写功能名称】
     */
    @Override
    public List<EquipmentCategory> selectEquipmentCategoryList(EquipmentCategory equipmentCategory)
    {
        return equipmentCategoryMapper.selectEquipmentCategoryList(equipmentCategory);
    }

    /**
     * 新增【请填写功能名称】
     * 
     * @param equipmentCategory 【请填写功能名称】
     * @return 结果
     */
    @Override
    public int insertEquipmentCategory(EquipmentCategory equipmentCategory)
    {
        return equipmentCategoryMapper.insertEquipmentCategory(equipmentCategory);
    }

    /**
     * 修改【请填写功能名称】
     * 
     * @param equipmentCategory 【请填写功能名称】
     * @return 结果
     */
    @Override
    public int updateEquipmentCategory(EquipmentCategory equipmentCategory)
    {
        return equipmentCategoryMapper.updateEquipmentCategory(equipmentCategory);
    }

    /**
     * 批量删除【请填写功能名称】
     * 
     * @param ids 需要删除的【请填写功能名称】主键
     * @return 结果
     */
    @Override
    public int deleteEquipmentCategoryByIds(Long[] ids)
    {
        return equipmentCategoryMapper.deleteEquipmentCategoryByIds(ids);
    }

    /**
     * 删除【请填写功能名称】信息
     * 
     * @param id 【请填写功能名称】主键
     * @return 结果
     */
    @Override
    public int deleteEquipmentCategoryById(Long id)
    {
        return equipmentCategoryMapper.deleteEquipmentCategoryById(id);
    }
}
